package com.my.mall.manage.imageInfo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.my.mall.manage.imageInfo.dao.ImageInfoManageDao;
import com.my.mall.manage.imageInfo.dto.ImageInfoManageDTO;

@Service
public class ImageInfoManageService {
	@Autowired
	ImageInfoManageDao imageInfoManageDao;

	public void saveImg(ImageInfoManageDTO file) {
		imageInfoManageDao.saveImg(file);
	}

	public ImageInfoManageDTO getImgUrl(int id) {
		return imageInfoManageDao.getImgUrl(id);
	}

	public List<String> getAlbum(String ids[]) {
		return imageInfoManageDao.getAlbum(ids);
	}
	
	public int delImgByGoodsId(int goodsId) {
		return imageInfoManageDao.delImgByGoodsId(goodsId);
	}
	
}
